<template>
    <div class="title">
        <h2 v-if="title !== ''" class="h2 bb" v-text="title" />
        <slot v-else />
    </div>
</template>

<script>
export default {
    props: {
        title: {
            default: ""
        }
    },
    data() {
        return {};
    },
    created() {},
    methods: {}
};
</script>

<style scoped>
.title {
    height: 60px;
    line-height: 60px;
    padding: 0 30px;
    margin: 20px 0;
    font-size: 20px;
    border-radius: 3px;
    color: var(--clr0);
    background-color: var(--bg1);
}
.h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
}
</style>